package com.be.beadmin.quality.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Description: 单柜工序自检信息
 * @author: Jiaming Zheng
 * @Date: Create in 15:48 2023/3/19
 * @Modified By:
 **/

@Entity
@Table(name="T_OM_ProductSelfCheckInfor")
@Getter
@Setter
public class ProductSelfCheckInfor extends BaseEntity {

    @Column(name = "BatchProductId",columnDefinition = "VARCHAR(50) COMMENT '柜体ID' null")
    private String batchProductId;

    @Column(name = "BatchProductCode",columnDefinition = "VARCHAR(50) COMMENT '柜体编号'")
    private String batchProductCode;

    @Column(name = "ProcessId",columnDefinition = "VARCHAR(50) COMMENT '工序ID'")
    private String processId;

    @Column(name = "ProcessName",columnDefinition = "VARCHAR(50) COMMENT '工序名称'")
    private String processName;

    @Column(name = "ProcessCode",columnDefinition = "VARCHAR(50) COMMENT '工序编码'")
    private String processCode;

    @Column(name = "SelfCheckTemplate",columnDefinition = "VARCHAR(255) COMMENT '工序自检模板'")
    private String selfCheckTemplate;

    @Column(name = "InspectionTaskId",columnDefinition = "VARCHAR(255) COMMENT '工序自检任务id'")
    private String inspectionTaskId;

    @Column(name = "SelfCheckContent",columnDefinition = "VARCHAR(255) COMMENT '工序自检结果'")
    private String selfCheckContent;

    @Column(
            name = "IsForceSelfCheck",
            nullable = false,
            columnDefinition = "decimal(1) default 0 COMMENT '当前工序是否强制自检' "
    )
    protected Integer isForceSelfCheck = 0;
    /**
     * 0未自检
     * 1已自检
     * 2无需自检
     */
    @Column(
            name = "ProcessCheckFlag",
            nullable = false,
            columnDefinition = "decimal(1) default 0 COMMENT '当前工序自检状态' "
    )
    protected Integer processCheckFlag = 0;

    /**
     * 0无异常
     * 1有异常
     */
    @Column(
            name = "ProcessErrorFlag",
            nullable = false,
            columnDefinition = "decimal(1) default 0 COMMENT '当前工序自检异常标识' "
    )
    protected Integer processErrorFlag = 0;

    @Column(name = "Memo", columnDefinition = "VARCHAR(50) COMMENT '备注' ")
    private String memo;


}
